<h2>My Heroes</h2>
<ul class="heroes">
  <li *ngFor="let hero of heros"
    [class.selected]="hero === selectedHero"
    (click)="onSelect(hero)">
    <a routerLink="/detail/{{hero.id}}">
      <span class="badge">{{hero.id}}</span> {{hero.name}}
    </a>
  </li>
</ul>

<div *ngIf="selectedHero">
  <app-hero-detail [hero]="selectedHero"></app-hero-detail>
</div>
